﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Nova_BLL
{
    public class TZoneDefine
    {
        Nova_DAL.TZoneDefine Nova_DAL_TZoneDefine = new Nova_DAL.TZoneDefine();
        DataSet ds = null;
        string strs = "";
        /// <summary>
        /// 返回dataset
        /// 查找货位库区视图信息
        /// </summary>
        /// <returns>ds</returns>
        ///Writer：[王成友]
        ///Create Date： [2010-7-5]
        public DataSet DataListTZoneDefine(int iLaneID)
        {
            try
            {
                ds = Nova_DAL_TZoneDefine.DataListTZoneDefine(iLaneID);
            }
            catch (Exception ex)
            {
                Console.Write(ex.ToString());
            }
            return ds;
        }


        /// <summary>
        /// 返回dataset
        /// 查找库区表信息
        /// </summary>
        /// <returns>ds</returns>
        ///Writer：[王成友]
        ///Create Date： [2010-7-6]
        public DataSet DLTZoneDefine()
        {
            try
            {
                ds = Nova_DAL_TZoneDefine.DLTZoneDefine();
            }
            catch (Exception ex)
            {
                Console.Write(ex.ToString());
            }
            return ds;
        }

        /// <summary>
        /// 返回string
        /// 查找库区表颜色
        /// </summary>
        /// <returns>string</returns>
        ///Writer：[王成友]
        ///Create Date： [2010-7-6]
        public string getColor(string strColor)
        {

            try
            {
                strColor = Nova_DAL_TZoneDefine.getColor(strColor);
            }
            catch (Exception ex)
            {
                Console.Write(ex.ToString());
            }
            return strColor;
        }
        /// <summary>
        /// 成功与失败
        /// 修改库区类型
        /// </summary>
        /// <returns>ds</returns>
        ///Writer：[王成友]
        ///Create Date： [2010-7-7]
        public string UpdateZoneID(string iPID, int iZone_ID)
        {
            try
            {
                strs = Nova_DAL_TZoneDefine.UpdateZoneID(iPID, iZone_ID);
            }
            catch (Exception ex)
            {
                Console.Write(ex.ToString());
            }
            return strs;
        }

    }
}
